package com.weipai.springboot.model;

import com.weipai.springboot.model.sys.User;
import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.UUID;

/**
 * 客户实体类
 */
@Table(name = "c_customer")
public class Customer implements Serializable {

    @Id
    private String customerId = UUID.randomUUID().toString();//主键;

    private String customerLoginName;//用户登录名

    private String customerNickname;//昵称

    private String customerSex ;//性别

    private String customerMobile;//手机号

    private String memberLevelId;//会员等级id

    private Integer customerCategoryId ;//会员类别

    private Integer customerReputation;//信誉值

    private Integer customerIntegral;//积分

    private String customerPassword;//密码

    private String wxUid;//微信登录id

    private String adminCode; //员工邀请码

    private Integer cashMoney; //可提现金额 单位分

    private String customerHeadImg;//头像

    private String alipayAccount;//支付宝账号

    private String wxOppenid; //微信授权ID

    private Integer hcashMoney;//当前可提现金额

    public Integer getHcashMoney() {
        return hcashMoney;
    }

    public void setHcashMoney(Integer hcashMoney) {
        this.hcashMoney = hcashMoney;
    }

    public String getWxOppenid() {
        return wxOppenid;
    }

    public void setWxOppenid(String wxOppenid) {
        this.wxOppenid = wxOppenid;
    }

    public String getWxUid() {
        return wxUid;
    }

    public void setWxUid(String wxUid) {
        this.wxUid = wxUid;
    }

    private String customerRealName;

    private String createTime = DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    private String delTime;//删除时间   

    private String updateTime;//修改时间

    public Integer getUseReputation() {
        return useReputation;
    }

    public void setUseReputation(Integer useReputation) {
        this.useReputation = useReputation;
    }

    private Integer useReputation;  //可用信用值

    private Integer customerDel=0;

    private Integer customerStatus;

    private String remark;

    public Integer getCustomerStatus() {
        return customerStatus;
    }

    public void setCustomerStatus(Integer customerStatus) {
        this.customerStatus = customerStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCustomerCategoryId() {
        return customerCategoryId;
    }

    public void setCustomerCategoryId(Integer customerCategoryId) {
        this.customerCategoryId = customerCategoryId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId == null ? null : customerId.trim();
    }

    public String getCustomerLoginName() {
        return customerLoginName;
    }

    public void setCustomerLoginName(String customerLoginName) {
        this.customerLoginName = customerLoginName;
    }

    public String getCustomerRealName() {
        return customerRealName;
    }

    public void setCustomerRealName(String customerRealName) {
        this.customerRealName = customerRealName;
    }

    public String getCustomerNickname() {
        return customerNickname;
    }

    public void setCustomerNickname(String customerNickname) {
        this.customerNickname = customerNickname == null ? null : customerNickname.trim();
    }

    public String getCustomerSex() {
        return customerSex;
    }

    public void setCustomerSex(String customerSex) {
        this.customerSex = customerSex == null ? null : customerSex.trim();
    }

    public String getCustomerMobile() {
        return customerMobile;
    }

    public void setCustomerMobile(String customerMobile) {
        this.customerMobile = customerMobile == null ? null : customerMobile.trim();
    }

    public String getMemberLevelId() {
        return memberLevelId;
    }

    public void setMemberLevelId(String memberLevelId) {
        this.memberLevelId = memberLevelId == null ? null : memberLevelId.trim();
    }

    public Integer getCustomerReputation() {
        return customerReputation;
    }

    public void setCustomerReputation(Integer customerReputation) {
        this.customerReputation = customerReputation;
    }

    public Integer getCustomerIntegral() {
        return customerIntegral;
    }

    public void setCustomerIntegral(Integer customerIntegral) {
        this.customerIntegral = customerIntegral;
    }

    public String getCustomerPassword() {
        return customerPassword;
    }

    public void setCustomerPassword(String customerPassword) {
        this.customerPassword = customerPassword == null ? null : customerPassword.trim();
    }

    public String getCustomerHeadImg() {
        return customerHeadImg;
    }

    public void setCustomerHeadImg(String customerHeadImg) {
        this.customerHeadImg = customerHeadImg == null ? null : customerHeadImg.trim();
    }

    public String getAlipayAccount() {
        return alipayAccount;
    }

    public void setAlipayAccount(String alipayAccount) {
        this.alipayAccount = alipayAccount == null ? null : alipayAccount.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public Integer getCustomerDel() {
        return customerDel;
    }

    public void setCustomerDel(Integer customerDel) {
        this.customerDel = customerDel;
    }


    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode;
    }

    public Integer getCashMoney() {
        return cashMoney;
    }

    public void setCashMoney(Integer cashMoney) {
        this.cashMoney = cashMoney;}

}